package com.fusion.ui.windows.viewshare;


/**
 * @author SwethaShivakumar 
 * Project: fusion
 * Date: Mar 21, 2009
 * URL: http://fusionwiki.co.cc
 * Mail Me At: shiva@fusionproject.co.cc
 */
public class ViewShareShareBaseNode extends ViewShareTreeNode {
    private int shareBaseIndex;

    public ViewShareShareBaseNode(String name, ViewShareRootNode root, int shareBaseIndex) {
        super(name, root, root);
        this.shareBaseIndex = shareBaseIndex;
    }

    protected int getShareBaseIndex() {
        return shareBaseIndex;
//        return root.getIndex(this);
    }

    protected String getFileItemPath() {
        return "";
    }

    public boolean isLeaf() {
        assureChildrenAreLoaded();
        return children.size() == 0;
    }
}
